package com.gzhryc.shared_device.base.models;

import com.gzhryc.shared_device.base.enums.EOperatorType;

/**
 * 操作信息
 */
public class OperateInfo {

    private String programType;     //操作的程序
    private String programTypeName;
    private Integer operatorType;   //操作用户类型
    private String operatorTypeName;
    private Long operatorId;         //操作用户ID
    private String operator;        //操作用户
    private String operateNote;     //操作说明

    public OperateInfo(){}

    public OperateInfo(String programType, String programTypeName){
        this.programType = programType;
        this.programTypeName = programTypeName;
    }

    public void setOperator(Integer operatorType,String operator){
        this.operatorType = operatorType;
        this.operatorTypeName = EOperatorType.note(this.operatorType);
        this.operator = operator;
    }

    public String getProgramType() {
        return programType;
    }

    public void setProgramType(String programType) {
        this.programType = programType;
    }

    public Integer getOperatorType() {
        return operatorType;
    }

    public void setOperatorType(Integer operatorType) {
        this.operatorType = operatorType;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOperateNote() {
        return operateNote;
    }

    public void setOperateNote(String operateNote) {
        this.operateNote = operateNote;
    }

    public String getOperatorTypeName() {
        return operatorTypeName;
    }

    public void setOperatorTypeName(String operatorTypeName) {
        this.operatorTypeName = operatorTypeName;
    }

    public String getProgramTypeName() {
        return programTypeName;
    }

    public void setProgramTypeName(String programTypeName) {
        this.programTypeName = programTypeName;
    }
}
